import java.util.Random;

/**
 * 生成30-100的随机数
 * Math.random()生成0-1之间的数
 */

public class RandomSample {

    public static void main(String[] args) {
        System.out.println(RandomSample.randomIntOne());
        System.out.println(RandomSample.randomIntTwo());
    }

    public static int randomIntOne() {
        return new Random().nextInt(71) + 30;
    }

    public static int randomIntTwo() {
        return (int)(Math.random() * 70 + 30);
    }


}
